home *** CD-ROM | disk | FTP | other *** search
/ Aminet 24 / Aminet 24 (1998)(GTI - Schatztruhe)[!][Apr 1998].iso / Aminet / util / shell / Exp13.lha / Exp13 / Docs / English / EXP13.doc next >
Text File  |  1998-01-12  |  3KB  |  97 lines

  1. Installation
  2. ------------
  3.  
  4. The installation is very simple, is sufficient to copy the file "EXP13" into the
  5. directory C:, or into any congenial directory. The program start from shell.
  6. The documentation you can copy her into any directory which you have doc.
  7. The request minimun of the program is the version 2.0 or above of the WorkBench.
  8.  
  9. EX.: Copy EXP13/EXP13 C:
  10.  
  11. Synopsys
  12. --------
  13.  
  14. Now which you see before you eye the shell, you digit the name of the program and
  15. press Return, or the name followed the ? and you have the main information of the
  16. program. The synopsys possible is:
  17.  
  18. NOBIN = Don't printf the value binary of the result;
  19. NOHEX = Don't printf the value exadecimal of the reuslt;
  20. Expression = Any algebraic expression;
  21.  
  22. EX.: EXP13 NOBIN 4+(5*2)
  23.  
  24. Main function of the program
  25. ----------------------------
  26.  
  27. This program is FreeWare.
  28. This program identify anf interpret expression and print all the passage relative the
  29. expression. 
  30. The result is printed in 3 format: Decimal, Binary and Exadecimal.
  31. You can insert number Decimal, Binary and Exadecimal maybe only a 32 bit integers.
  32. The binary is interpreted from % followed of the binary number.
  33. The exadecimal is interpreted from $ followed of the exadecimal number.
  34. The floating point don't admited.
  35. The programopertae on well 17 operator with the followed priority:
  36.  
  37. Priority        Operator
  38. Bracket                ( ) 
  39. High            (POW,^) (~,!,NOT) EXP
  40.             * / (%,R)
  41.             + -
  42.             < > <= >=
  43.             != ==
  44. Low            (&,AND) (|,OR) (X,XOR)
  45.  
  46. Every operator have more of one way to be used. The program accept the space into any
  47. way. The bracket change the priority of the expression naturally the operator with
  48. the highest priority is resolved before the others.
  49. The program signal error if the expression is wrong.
  50.  
  51. Error
  52. -----
  53.  
  54. The program create the followed error code:
  55.  
  56. Error                    The number must be inserted:
  57. Immission decimal not correct        (0,1,2,3,4,5,6,7,8,9,)
  58. Immission binary not correct        (0,1)
  59. Immission exadecimal not correct    (0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F)
  60.  
  61. The number is too large            (Highest of 32 bit)
  62. Division by zero            (For...)
  63. Missing Bracket opened             (More Bracket Closed)
  64. Missing Bracket closed            (More Bracket Opened)
  65.  
  66. Operator
  67. ---------
  68.  
  69. ( )        Change the priority
  70. (POW,^)     Multiply for the same number. EX.: 2POW3 (2*2*2) = 8
  71. (~,!,NOT)     Logical NOT. EX.: ~3 = -4
  72. EXP         Exponenzial, add zero's. EX.: 2EXP3 = 2000
  73. *         Multiply. EX.: 2*4 = 8
  74. /        Division. EX.: 4/2 = 2
  75. (%,R)        Rest. EX.: 4%3 = 1
  76. +        Add. EX.: 2+4 = 6
  77. -        Subtract. EX.: 4-5 = -1
  78. <        Lower of. EX.: 4<5 = 1(True)
  79. >        Highest of. EX.: 4>5 = 0(False)
  80. <=        Lower or same at. EX.: 4<=4 = 1(True)
  81. >=        Highest or same at. EX.: 4>=5 = 0(False)
  82. ==        Same. EX.: 4==2 = 0(False)
  83. !=        Not same. EX.: 4!=2 = 1(True)
  84. (&,AND)        Logocal AND. EX.: 4&2 = 0
  85. (|,OR)        Logical OR. EX.: 4|2 = 6
  86. (X,XOR)        Logical XOR. EX.: 4X2 = 6
  87.  
  88. Information
  89. -----------
  90.  
  91. For any bug, information or only for speak write to:
  92.  
  93.     Dattola Filippo
  94.     via Fiaccacollo 4
  95.     Sasso Marconi, 40037
  96.     Bologna, Italy
  97.